<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script>
			var myWindow;
			function fun1(){
				myWindow = window.open("https://www.baidu.com","baidu","width=800,height=600,top=200,left=600")
			}
			function fun2(){
				myWindow.close();
			}
		</script>
	</head>
	<body>
		<button onclick="fun1()">打开百度</button>
		<button onclick="fun2()">关闭百度</button>
	</body>
</html>
